package com.lpf.swaggerdemo.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("响应结果")
public class ResponseResult<T> {

    @ApiModelProperty(value = "返回码", dataType = "int", position = 1)
    private int code;

    @ApiModelProperty(value = "错误信息", dataType = "String", position = 2)
    private String msg;

    @ApiModelProperty(value = "Api版本", dataType = "String", position = 3)
    private String version;

    @ApiModelProperty(value = "业务数据", position = 4)
    private T reslut;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public T getReslut() {
        return reslut;
    }

    public void setReslut(T reslut) {
        this.reslut = reslut;
    }
}
